CC=g++
CFLAGS=-std=c++0x -Wall
LIBFLAGS=-c

SPATH=System
HPATH=Headers

all: log config module.tui clean

log: $(SPATH)/log.cpp $(HPATH)/log.h
	$(CC) $(CFLAGS) $(LIBFLAGS) $(SPATH)/log.cpp -o log.o	-DLOGPATH=\"./journal\"

config: $(SPATH)/config.cpp $(HPATH)/config.h
	$(CC) $(CFLAGS) $(LIBFLAGS) $(SPATH)/config.cpp -o config.o 

module.tui: 
	$(MAKE) -f ./TUI/Makefile

clean:
	rm *.o
